]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Handle VPN connections in VPN section
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Aug 2022 16:06:08 +0000 (18:06 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 12:17:19 +0000 (12:17 +0000)
commitdf354fc0d44b698afc12de9cc90d36fd462cd091
treeee470909509e750fbdd71c660ca7c092e63d4b4a
parente84ab815d2d623f6a3c4a300d27c50aa59e8cab3
status/network: Handle VPN connections in VPN section

Right now the indicator itself tracks all devices and connections,
creates and destroys the corresponding menu items, matches them
to a section and updates the connection/device arrays that are
attached to the section.

Sounds messy?

It is slightly less effective to connect multiple handlers to the
same NMClient, but let's assume that devices and connections aren't
added/removed at 60 frames/s, and we can add some readabilty by
moving the code into different classes that only have to care about
the bits that are relevant to them.

The VPN section is a good starting point, because its handling is
already quite different from device sections.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2407>
js/ui/status/network.js